import {AxiosPromise} from 'axios';
import axios, {AxiosRequestConfig} from 'axios';

/**
 * 查询已分配oss列表
 */
export const allocatedOssList = (query: any): AxiosPromise<any[]> => {
    const config: AxiosRequestConfig = {
        url: 'prod-api/iot/elevator/oss/allocatedList',
        method: 'get',
        params: query,
        timeout: 50000
    };

    return axios.request(config);
};